const express = require("express");
const app = express();
const cors = require("cors"); // 进行跨域处理
const router = require("./apiRouter");
app.use(cors())
app.use("/api", router)
app.listen("3000")